package com.koron.ticket.workchange.ticketchange.mapper;


import com.koron.ticket.workchange.ticketchange.bean.TicketChange;
import com.koron.ticket.workchange.ticketchange.bean.TicketChangeQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (TicketChange)表数据库访问层
 *
 * @author 
 * @since 2021-10-26 15:11:45
 */
public interface TicketChangeMapper {

    void insert(TicketChange ticketChange);
    
    void deleteById(@Param("id") String id);
    
    void update(TicketChange ticketChange);
    
    TicketChange getSingle(TicketChangeQuery ticketChangeQuery);

    List<TicketChange> getListAndPaging(TicketChangeQuery ticketChangeQuery);

    TicketChange checkTimeOut(TicketChangeQuery ticketChangeQuery);

    String getMaxCode(String workTicketId);

    Integer count(TicketChangeQuery ticketChangeQuery);

    void deleteByWorkTicketId(@Param("workTicketId") String workTicketId);
}
